// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

using System;
using System.Collections.Generic;
using System.Reflection;

namespace SnapObjects.Expressions
{
    public class EvaluateMethodMetadata : MethodMetadata<EvaluateResult, ParameterInfo>
    {
        public EvaluateMethodMetadata(MethodMetadata<EvaluateResult, ParameterInfo> metadata)
            : base(metadata)
        {
        }

        public EvaluateMethodMetadata(string name, EvalMethodDataInfo method)
            : base(name, method)
        {
        }
    }

    public class EvalMethodDataInfo : MethodDataInfo<EvaluateResult, ParameterInfo>
    {
        public EvalMethodDataInfo(
            MethodInfo method,
            Func<Type[], EvalMethodDataInfo> makeGeneric)
            : base(method, makeGeneric)
        {
        }

        public EvalMethodDataInfo(
            string name,
            EvaluateResult body,
            List<MethodParamInfo<ParameterInfo>> parameters,
            int variableParamIndex = -1,
            int optionalParamIndex = -1)
            : base(name, body, parameters, variableParamIndex, optionalParamIndex)
        {
        }
    }
}
